﻿<!DOCTYPE html>
<html>
<head>
    <title>获取OpenId</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script type="text/javascript">
        function GetQueryString(name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
            var r = window.location.search.substr(1).match(reg);
            if (r != null) return unescape(r[2]); return null;
        }
    </script>
</head>
<body>
    <p>code : <label id="lblCode"></label></p>
    <p>openid : <label id="lblOpenId"></label></p>
    <script src="http://cdn.bootcss.com/zepto/1.1.4/zepto.min.js" type="text/javascript"></script>
    <script src="asset/js/utils.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#lblCode").html(code);

            var openid = getCookie("myOpenId");
            $("#lblOpenId").html(openid);
        });
    </script>
</body>
</html>